/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_primary_data.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_PRIMARY_DATA
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_primary_data.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h" 

CTable_PPM_PRIMARY_DATA::CTable_PPM_PRIMARY_DATA( )
 :NPCRecordSet( )
{
  setTableName( "PPM_PRIMARY_DATA" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  TYPE_ID.setField( "TYPE_ID", DATA_CHAR, 8, 0 );
  makeTableItem( TYPE_ID );
  CODE.setField( "CODE", DATA_CHAR, 8, 0 );
  makeTableItem( CODE );
  NAME.setField( "NAME", DATA_CHAR, 20, 0 );
  makeTableItem( NAME );
  REMARK.setField( "REMARK", DATA_CHAR, 1024, 0 );
  makeTableItem( REMARK );
	BD_CODE.setField( "BD_CODE", DATA_CHAR, 8, 0 );
  makeTableItem( BD_CODE );
}


CTable_PPM_PRIMARY_DATA::CTable_PPM_PRIMARY_DATA( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_PRIMARY_DATA" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  TYPE_ID.setField( "TYPE_ID", DATA_CHAR, 8, 0 );
  makeTableItem( TYPE_ID );
  CODE.setField( "CODE", DATA_CHAR, 8, 0 );
  makeTableItem( CODE );
  NAME.setField( "NAME", DATA_CHAR, 20, 0 );
  makeTableItem( NAME );
  REMARK.setField( "REMARK", DATA_CHAR, 1024, 0 );
  makeTableItem( REMARK );
	BD_CODE.setField( "BD_CODE", DATA_CHAR, 8, 0 );
  makeTableItem( BD_CODE );
}

CTable_PPM_PRIMARY_DATA::~CTable_PPM_PRIMARY_DATA( )
{
    close();
}

